﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001A1 RID: 417
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CEPGECDBNFF : IMessage<CEPGECDBNFF>, IMessage, IEquatable<CEPGECDBNFF>, IDeepCloneable<CEPGECDBNFF>, IBufferMessage
	{
		// Token: 0x17000578 RID: 1400
		// (get) Token: 0x060012C0 RID: 4800 RVA: 0x00035B35 File Offset: 0x00033D35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CEPGECDBNFF> Parser
		{
			get
			{
				return CEPGECDBNFF._parser;
			}
		}

		// Token: 0x17000579 RID: 1401
		// (get) Token: 0x060012C1 RID: 4801 RVA: 0x00035B3C File Offset: 0x00033D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CEPGECDBNFFReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700057A RID: 1402
		// (get) Token: 0x060012C2 RID: 4802 RVA: 0x00035B4E File Offset: 0x00033D4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CEPGECDBNFF.Descriptor;
			}
		}

		// Token: 0x060012C3 RID: 4803 RVA: 0x00035B55 File Offset: 0x00033D55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CEPGECDBNFF()
		{
		}

		// Token: 0x060012C4 RID: 4804 RVA: 0x00035B5D File Offset: 0x00033D5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CEPGECDBNFF(CEPGECDBNFF other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060012C5 RID: 4805 RVA: 0x00035B8E File Offset: 0x00033D8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CEPGECDBNFF Clone()
		{
			return new CEPGECDBNFF(this);
		}

		// Token: 0x1700057B RID: 1403
		// (get) Token: 0x060012C6 RID: 4806 RVA: 0x00035B96 File Offset: 0x00033D96
		// (set) Token: 0x060012C7 RID: 4807 RVA: 0x00035B9E File Offset: 0x00033D9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x1700057C RID: 1404
		// (get) Token: 0x060012C8 RID: 4808 RVA: 0x00035BA7 File Offset: 0x00033DA7
		// (set) Token: 0x060012C9 RID: 4809 RVA: 0x00035BAF File Offset: 0x00033DAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x060012CA RID: 4810 RVA: 0x00035BB8 File Offset: 0x00033DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CEPGECDBNFF);
		}

		// Token: 0x060012CB RID: 4811 RVA: 0x00035BC6 File Offset: 0x00033DC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CEPGECDBNFF other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060012CC RID: 4812 RVA: 0x00035C04 File Offset: 0x00033E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060012CD RID: 4813 RVA: 0x00035C62 File Offset: 0x00033E62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060012CE RID: 4814 RVA: 0x00035C6A File Offset: 0x00033E6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060012CF RID: 4815 RVA: 0x00035C74 File Offset: 0x00033E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(24);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060012D0 RID: 4816 RVA: 0x00035CD0 File Offset: 0x00033ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060012D1 RID: 4817 RVA: 0x00035D28 File Offset: 0x00033F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CEPGECDBNFF other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060012D2 RID: 4818 RVA: 0x00035D78 File Offset: 0x00033F78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060012D3 RID: 4819 RVA: 0x00035D84 File Offset: 0x00033F84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x040007BF RID: 1983
		private static readonly MessageParser<CEPGECDBNFF> _parser = new MessageParser<CEPGECDBNFF>(() => new CEPGECDBNFF());

		// Token: 0x040007C0 RID: 1984
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007C1 RID: 1985
		public const int AvatarTypeFieldNumber = 3;

		// Token: 0x040007C2 RID: 1986
		private AvatarType avatarType_;

		// Token: 0x040007C3 RID: 1987
		public const int AvatarIdFieldNumber = 10;

		// Token: 0x040007C4 RID: 1988
		private uint avatarId_;
	}
}
